package com.xuecheng.api.media;

import com.xuecheng.api.media.model.vo.MediaVO;
import com.xuecheng.api.media.model.vo.PreviewMedia;
import com.xuecheng.common.domain.page.PageRequestParams;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * <p></p>
 *
 * @Description:
 */
@Api(value = "媒资管理", tags = "媒资管理API",description = "对媒资信息进行管理")
public interface MediaApi {

    //其他代码省略

    @ApiOperation("保存媒资信息")
    @ApiImplicitParam(name = "vo", value = "媒资保存信息", required = true, dataType = "MediaVO", paramType = "body")
    MediaDTO createMedia(MediaVO vo);

    //查看本机构的视频
    @ApiOperation("查看所有媒资")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "params",value = "本机构的媒资信息"),
            @ApiImplicitParam(name = "mediaVO",value = "媒资信息")
    })
    PreviewMedia previewMediaList(PageRequestParams params, MediaVO mediaVO);

    //媒资信息预览
    @ApiOperation(value = "获得媒资信息预览资源地址")
    @ApiImplicitParam(name = "mediaId",value = "媒资id",dataType = "Long",paramType = "path",required = true)
    String previewMedia(Long mediaId);

    //媒资信息删除 阿里云删除视频
    @ApiOperation(value = "删除媒资数据")
    @ApiImplicitParam(name = "id",value = "媒资id",dataType = "String")
    Boolean  deleteById(String id);
}